angular.module("myApp",[]).controller("firstController",function($scope){
	$scope.name="张三";
	$scope.count=0;
	$scope.data = {
			name:"李四",
			count:20
	};
	$scope.$watch("name",function(newValue,oldValue){
		$scope.count++;
		if($scope.count > 30 ){
			$scope.name="已经大于30次了";
		}
	});
	$scope.$watch("data.name",function(newValue,oldValue){},true)
});